/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package br.com.sales.hanforpi.client.service;

import br.com.sales.generics.client.HanRequestBuilder;
import br.com.sales.generics.client.request.HannaRequestCallback;
import com.google.gwt.json.client.JSONArray;
import com.google.inject.Inject;

/**
 *
 * @author Karine
 */
public class HanForPIService {
        @Inject
    private HanRequestBuilder requestProxy;
        
    public void validateLogin(String user, String password, HannaRequestCallback callback) {
        JSONArray array = new JSONArray();
        array.set(0, requestProxy.formatJson(user));
        array.set(1, requestProxy.formatJson(password));

        requestProxy.sendRequest("HanForPI", "validateLogin", array, callback);
    }        
}
